package _04TestFactory01_02_03;

import java.math.BigDecimal;
import java.util.Scanner;

public class Main01_02_03 {
    public static void main(String[] args) {
        System.out.println("---简单计算器---");
        System.out.println("请输入第一个数字");
        Scanner scanner=new Scanner(System.in);
        String str1 = scanner.next();
        System.out.println("请输入运算符");
        String oper = scanner.next();
        System.out.println("请输入第二个数字");
        String str2=scanner.next();
        OperationFactory operation = new Operation(str1,oper,str2);
        BigDecimal result = operation.getResult();
        System.out.println(result);

    }
}
